package com.whut.mapper;

import com.whut.model.Fuzzyresult;

import java.util.List;

public interface FuzzyresultMapper {
    int deleteByPrimaryKey(Integer mKey);

    int insert(Fuzzyresult record);

    int insertSelective(Fuzzyresult record);

    Fuzzyresult selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Fuzzyresult record);

    int updateByPrimaryKey(Fuzzyresult record);

    int getFuzzyResultCountByCheckId(int checkId);

    Fuzzyresult selectAllInfoByCheckIdType1(int checkId);
    Fuzzyresult selectAllInfoByCheckIdType2(int checkId);
    Fuzzyresult selectAllInfoByCheckIdType3(int checkId);

    int getFuzzyResultCountByCheckIdAndResultTypeAndFirstIdAndSecondId(int checkId,int resultType,int firstId,int secondId);
    int getMkeyByCheckIdAndResultTypeAndFirstIdAndSecondId(int checkId,int resultType,int firstId,int secondId);
    Fuzzyresult selectInfoByCheckIdAndTypeAndNumber(int checkId,int resultType,int firstId,int secondId);
    List<Fuzzyresult> getAllFuzzyInfoByCheckIdAndTypeAndFirstId(int checkId,int resultType,int firstId);
}